import { createApp } from 'vue'
import App from './App.vue'
import Antd from 'ant-design-vue'
import 'ant-design-vue/dist/antd.css'
import pinia from './pinia'
import router from './router'

const app = createApp(App)


// 注册全局组件
import * as Components from './global-components'
Object.entries(Components).forEach(([key, component]) => {
  app.component(key, component)
})

app
  .use(Antd)
  .use(pinia)
  .use(router)
  .mount('#app')
